<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ASPNETWebApplication1._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">	
<title>JSCompiler sample</title>
</head>
<body>	
<form id="form1" runat="server">	
<asp:ScriptManager id="sm" runat="server" />		
<div id="content">			
test JS Better OO App
</div>		
<textarea id="TraceConsole" rows="10" cols="100"></textarea>	
</form>
</body>
<script type="text/javascript" src="scripts/ClassCompiler.js"></script>
<script type="text/javascript">
function testFunc(){	
	// just another test
}
compileClasses({	
	testClass: {		
		ctor: function() {			
			// this is a test		
		},		
		private: {			
			privateVar:1,			
			privateMethd:function() {				
				// test method			
			}		
		},		
		public:{			
			// public stuff here			
			publicVar:"2"		
		},		
		static:{			
			//public statics			
			staticVar:"test"		
		}	
	},	
	testClass2: {		
		ctor: testFunc,		
		private: {			
			privateVar2:"2"		
		},		
		public:{			
			publicMethod:function() {				
				return true;			
			},			
			myVar:"this is a test",			
			dispose:function() {			
			}		
		},		
		implements:["Sys.IDisposable"]	
	}
});
var testInst = new testClass();
Sys.Debug.traceDump(testInst);
testInst = new testClass2();
Sys.Debug.traceDump(testInst);
document.getElementById('content').innerHTML = "All Clear";
</script>
</html>